package com.superm.service.impl;

import com.superm.entity.Permission;
import com.superm.entity.PermissionTree;
import com.superm.mappers.PermissionMapper;
import com.superm.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;
    @Override
    public List<Permission> AllperId(List<Integer> rolesId,Integer empId) {
        return permissionMapper.AllperId(rolesId,empId);
    }
    @Override
    public List<Permission> AllParidChild(int perid) {
        return permissionMapper.AllParidChild(perid);
    }
    @Override
    public List<PermissionTree> seaPermissionTree() {
        return permissionMapper.seaPermissionTree();
    }

    @Override
    public List<Permission> AllperId1() {
        return permissionMapper.AllperId1();
    }

    @Override
    public List<Permission> AllParidChild1(int id) {
        return permissionMapper.AllParidChild1(id);
    }
}
